#ifndef THREAD_H
#define THREAD_H

#include <QThread>
#include <QDateTime>
#include <QMutex>
#include <QSerialPort>
#include <QSerialPortInfo>

#include "sqlite.h"
#include "serial.h"


#ifdef SUPPORT_ARM
class Thread : public QThread
{
    Q_OBJECT
public:
    static Thread *Get()
    {
        static Thread t;
        return &t;
    }

    QMutex mutex;
    explicit Thread(QObject *parent = nullptr);
    QList<Lend_t> list;

    bool isExit = false;
    void run() override;
public slots:
    void getList();
signals:
    void sigGetList();
    void cppSigCard(QString id);
};
#endif
#endif // THREAD_H
